.class Lcom/example/m6wmr/BaseMapDemo$2;
.super Ljava/lang/Object;
.source "BaseMapDemo.java"

# interfaces
.implements Lcom/baidu/mapapi/search/poi/OnGetPoiSearchResultListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/example/m6wmr/BaseMapDemo;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/BaseMapDemo;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/BaseMapDemo;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/BaseMapDemo$2;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    .line 226
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onGetPoiDetailResult(Lcom/baidu/mapapi/search/poi/PoiDetailResult;)V
    .locals 0
    .param p1, "result"    # Lcom/baidu/mapapi/search/poi/PoiDetailResult;

    .prologue
    .line 269
    return-void
.end method

.method public onGetPoiResult(Lcom/baidu/mapapi/search/poi/PoiResult;)V
    .locals 6
    .param p1, "result"    # Lcom/baidu/mapapi/search/poi/PoiResult;

    .prologue
    .line 228
    iget-object v3, p1, Lcom/baidu/mapapi/search/poi/PoiResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    sget-object v4, Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;->NO_ERROR:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    if-eq v3, v4, :cond_0

    .line 231
    const-string v3, "\u641c\u7d22\u5931\u8d25"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v5, p1, Lcom/baidu/mapapi/search/poi/PoiResult;->error:Lcom/baidu/mapapi/search/core/SearchResult$ERRORNO;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 266
    :goto_0
    return-void

    .line 236
    :cond_0
    iget-object v3, p0, Lcom/example/m6wmr/BaseMapDemo$2;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v3, v3, Lcom/example/m6wmr/BaseMapDemo;->searchls:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->clear()V

    .line 237
    iget-object v3, p0, Lcom/example/m6wmr/BaseMapDemo$2;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->spbd:Ldata/MapData;
    invoke-static {v3}, Lcom/example/m6wmr/BaseMapDemo;->access$1(Lcom/example/m6wmr/BaseMapDemo;)Ldata/MapData;

    move-result-object v3

    invoke-virtual {v3}, Ldata/MapData;->notifyDataSetChanged()V

    .line 239
    :try_start_0
    const-string v3, "\u641c\u7d22\u7ed3\u679c"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getAllPoi()Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v5

    invoke-static {v5}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 240
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getAllPoi()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3}, Ljava/util/List;->size()I

    move-result v3

    if-lt v2, v3, :cond_1

    .line 245
    iget-object v3, p0, Lcom/example/m6wmr/BaseMapDemo$2;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    # getter for: Lcom/example/m6wmr/BaseMapDemo;->spbd:Ldata/MapData;
    invoke-static {v3}, Lcom/example/m6wmr/BaseMapDemo;->access$1(Lcom/example/m6wmr/BaseMapDemo;)Ldata/MapData;

    move-result-object v3

    invoke-virtual {v3}, Ldata/MapData;->notifyDataSetChanged()V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 251
    .end local v2    # "i":I
    :catch_0
    move-exception v1

    .line 252
    .local v1, "e":Ljava/lang/NullPointerException;
    invoke-virtual {v1}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto :goto_0

    .line 241
    .end local v1    # "e":Ljava/lang/NullPointerException;
    .restart local v2    # "i":I
    :cond_1
    :try_start_1
    invoke-virtual {p1}, Lcom/baidu/mapapi/search/poi/PoiResult;->getAllPoi()Ljava/util/List;

    move-result-object v3

    invoke-interface {v3, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/baidu/mapapi/search/core/PoiInfo;

    .line 242
    .local v0, "bb":Lcom/baidu/mapapi/search/core/PoiInfo;
    iget-object v3, p0, Lcom/example/m6wmr/BaseMapDemo$2;->this$0:Lcom/example/m6wmr/BaseMapDemo;

    iget-object v3, v3, Lcom/example/m6wmr/BaseMapDemo;->searchls:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Ljava/lang/NullPointerException; {:try_start_1 .. :try_end_1} :catch_0

    .line 240
    add-int/lit8 v2, v2, 0x1

    goto :goto_1
.end method
